﻿using System.Collections.Generic;

namespace WebSiteFool.Libs
{
    public static class DictionaryExtensions
    {
        public static void AddItemIfNotEmpty(this Dictionary<string, string> dictionary, string key, string value)
        {
            if (key != null && value != null)
            {
                dictionary.Add(key, value);
            }
        }
    }
}